﻿@{
    Layout = "~/Views/Shared/_Layout2.cshtml";
}
@using Caltech.Models
@model LoginViewModel

<div class="page-login">
    <div class="navbar navbar-default login__navbar">
        <h4 class="text-center"><i class="icon-user"></i>Logon page</h4>
    </div>
    <div class="well">
        <form name="model" action="@Url.Action("Login")" method="post" class="row">
            <div class="form-group">
                @Html.TextBoxFor(model => model.UserName, new { @class = "form-control text-center", placeholder = "username", autofocus = true, required = true })
            </div>
            <div class="form-group">
                @Html.PasswordFor(model => model.Password, new { @class = "form-control text-center", placeholder = "password", autofocus = true, required = true })
            </div>
            <div class="form-group">
                <button class="btn btn-danger btn-block">Log me in</button>
            </div>
            @*<div class="form-group text-right">
                <a href="@Url.Action("Register")">Register</a>
            </div>*@
            @if (!ViewData.ModelState.IsValid)
            {
                @Html.ValidationSummary(string.Empty, new { @class = "alert alert-danger" })
            }
        </form>
    </div>
</div>